package br.univas.vperiod.jowey.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import br.univas.vperiod.jowey.dao.IPlayerDAO;

@Controller
@RequestMapping("report")
public class ReportController {

	@SuppressWarnings("rawtypes")
	@Autowired
	private IPlayerDAO playerDao;
	
	
	@RequestMapping("/list")
	public ModelAndView home(ModelMap model){
		model.put("reports", playerDao.findAll());
		return new ModelAndView("report",model);
	}
}
